home *** CD-ROM | disk | FTP | other *** search
- uses dosio;
- var
- coord:array[0..60] of record x,y,z:integer end;
- max:word;
- f:file;
-
- Procedure BuildForm;
- var a:word;
- begin
- max:=0;
- for a:=0 to 42 do begin
- with coord[max] do begin
- x:=trunc(100*cos(2*pi*a/43));
- y:=0;
- z:=trunc(100*sin(2*pi*a/43));
- end;
- inc(max);
- end;
- with coord[max] do begin
- x:=0; y:=20; z:=0; inc(max);
- end;
- with coord[max] do begin
- x:=0; y:=-20; z:=0; inc(max);
- end;
- with coord[max] do begin
- x:=0; y:=0; z:=-12; inc(max);
- end;
- with coord[max] do begin
- x:=-12; y:=0; z:=-12; inc(max);
- end;
- with coord[max] do begin
- x:=12; y:=0; z:=12; inc(max);
- end;
- end;
-
- begin
- Writeln('Making figure ...');
- openforoutput(f,'_jupiter.bal','');
- BuildForm;
- blockwrite(f,max,2); { Nr of points in the 3D form }
- blockwrite(f,coord,max*3*2);
- closefile(f,'');
- end.